import { Wallpaper } from '@libs/db/models/wallpaper.model';
import { Controller } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { Crud } from 'nestjs-mongoose-crud';
import { InjectModel } from 'nestjs-typegoose';


@Crud({
    model: Wallpaper,
    routes: {
       create: false,
       update: false,
       delete: false 
    }
})
@Controller('wallpapers')
@ApiTags('壁纸')
export class WallpapersController {
    constructor(@InjectModel(Wallpaper) private readonly model){}
}
